package com.hjj.AppIO;

import java.io.FileReader;
import java.io.IOException;

public class MyApp3 {
    public static void main(String[] args) {
        String temp = "";

        String path = "F:\\IO\\aa.txt";

        char[] chars = new char[1024 * 1024 * 10];

        try {
            FileReader fileReader = new FileReader(path);

            int read = 0;

            StringBuffer stringBuffer = new StringBuffer();

            while ((read = fileReader.read(chars, 0, chars.length)) != -1) {
                stringBuffer.append(new String(chars, 0, read));
            }

            temp = stringBuffer.toString();

            fileReader.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

        System.out.println(temp);

    }
}
